#import "OracleMarvelCell.h"


@implementation OracleMarvelCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self universeInitUIKit];
	}
	return self;
}

- (void)setArtistryGlimmer:(OracleMarvelModel *)artistryGlimmer {
	_artistryGlimmer = artistryGlimmer;

	//: 配置cell的UI



}
- (UIImageView *)tranquilImageView {
	if (!_tranquilImageView) {
	
        _tranquilImageView = [UIImageView new];
        _tranquilImageView.contentMode = UIViewContentModeScaleAspectFill;
        _tranquilImageView.clipsToBounds = YES;
        _tranquilImageView.layer.cornerRadius = 10;
        _tranquilImageView.layer.masksToBounds = YES;
        _tranquilImageView.size = CGSizeMake(42, 141);
        _tranquilImageView.left = 26;
        _tranquilImageView.top = 46;
        UIImage *keepsakeTranquil = [UIImage imageNamed:@"images/image_1.png"];
        if (keepsakeTranquil) {
	        _tranquilImageView.image = keepsakeTranquil;
        }
	}
	return _tranquilImageView;
}

//: _clarityVowBtn 的点击事件
- (void)action_2 {}

- (UIButton *)clarityVowBtn {
	if (!_clarityVowBtn) {
	
        _clarityVowBtn = [UIButton new];
        UIImage *resonateBalance = [UIImage imageNamed:@"images/icon_2.png"];
        if (resonateBalance) {
	        [_clarityVowBtn setImage:resonateBalance forState:UIControlStateNormal];
        }
        [_clarityVowBtn setTitle:@"button_2" forState:UIControlStateNormal];
        [_clarityVowBtn setTitle:@"button_selected_2" forState:UIControlStateSelected];
        [_clarityVowBtn setTitleColor:[UIColor colorWithRed:245/255.0 green:122/255.0 blue:88/255.0 alpha:0.7] forState:UIControlStateNormal];
        [_clarityVowBtn setTitleColor:[UIColor colorWithRed:166/255.0 green:32/255.0 blue:29/255.0 alpha:0.8] forState:UIControlStateSelected];
        [_clarityVowBtn addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
	}
	return _clarityVowBtn;
}

- (UITextField *)illuminateTextField {
	if (!_illuminateTextField) {
	
        _illuminateTextField = [UITextField new];
        _illuminateTextField.size = CGSizeMake(67, 85);
        _illuminateTextField.left = 50;
        _illuminateTextField.top = 32;
	}
	return _illuminateTextField;
}

- (void)universeInitUIKit {

    //: 描述_0
    self.flexibilityUnwindTextView = [UITextView new];
    self.flexibilityUnwindTextView.frame = CGRectMake(23, 9, 153, 149);
    [self.contentView addSubview:self.flexibilityUnwindTextView];

	//: 描述_1
	[self.contentView addSubview:self.tranquilImageView];

	//: 描述_2
	[self.contentView addSubview:self.clarityVowBtn];
	[self.clarityVowBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(71);
		make.height.mas_equalTo(131);
		make.bottom.equalTo(@(30));
	}];


    //: 描述_3
    UITextView *oracleQuiver = [[UITextView alloc] initWithFrame:CGRectZero];
    oracleQuiver.frame = CGRectMake(31, 28, 187, 164);
    self.xenonLuminaryTextView = oracleQuiver;
    [self.contentView addSubview:oracleQuiver];


    //: 描述_4
    self.yardView = [[UIView alloc] init];
    self.yardView.frame = CGRectMake(1, 2, 73, 164);
    [self.contentView addSubview:self.yardView];

	//: 描述_5
	[self.contentView addSubview:self.illuminateTextField];


    //: 描述_6
    self.yardUnderwaterWindfallTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    self.yardUnderwaterWindfallTextView.frame = CGRectMake(13, 17, 157, 85);
    [self.contentView addSubview:self.yardUnderwaterWindfallTextView];
}


@end